package com.zzx.project.service;

import com.zzx.project.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService { //用户Service
    int addUser(@Param("user") User user);

    void addLoginCount(int uid);

    int checkUname(String userName, int userId);

    int checkUemail(String userEmail, int userId);

    int checkUphone(String userPhone, int userId);

    int fixPass(int uid, String newPass);

    int getNewUserId();

    List<User> getAll();

    int getOpNum();

    User getUserById(int uid);

    User getUserByName(String uname);

    User login(String userInfo, String loginType);

    int uploadImgById(User user);

    int updateInfo(User user);
}
